]> dgit.raspbian.org Git - dovecot.git/commit
[PATCH 1/3] imap: Restrict COMPRESS to DEFLATE only
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Sat, 4 Jul 2026 21:57:15 +0000 (21:57 +0000)
committerNoah Meyerhans <noahm@debian.org>
Wed, 16 Sep 2026 19:06:35 +0000 (15:06 -0400)
commit588501febebf1ad5f50cc4c7d699145487aa117f
tree5410f94bf8823f44811521f8dc504950cf52a1cd
parent6726d2d4698c552a3f7bdf0bd303259a05ae48ad
[PATCH 1/3] imap: Restrict COMPRESS to DEFLATE only

cmd_compress() and the imap-login proxy side channel looked up any
registered compression handler by name, so a client could request e.g.
COMPRESS ZSTD even though only COMPRESS=DEFLATE is advertised (RFC 4978).

Non-DEFLATE algorithms can require far more memory to decompress (a zstd
decoder alone can hold a 16+ MB window per connection versus ~40 KB for
inflate). This matters now that imap-login handles COMPRESS for proxied
connections: an attacker opening many connections could drive the shared
login process into its vsz_limit and crash it, affecting all clients on
that process.

Only accept DEFLATE on both the backend and the login proxy path.

Gbp-Pq: Name 0001-imap-Restrict-COMPRESS-to-DEFLATE-only.patch
src/imap-login/imap-proxy.c
src/imap/cmd-compress.c